package com.heima.comment.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {

      @ApiModelProperty(value = "主键id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty(value = "评论用户id")
      private Integer userId;

      @ApiModelProperty(value = "文章id")
      private Long articleId;

      @ApiModelProperty(value = "评论创建时间")
      private Date createTime;

      @ApiModelProperty(value = "评论内容")
      private String content;

      @ApiModelProperty(value = "评论点赞数量")
      private Integer likeNumber;

      @ApiModelProperty(value = "评论回复数量")
      private Integer replyNumber;

      @ApiModelProperty(value = "冗余，评论id")
      private Integer commentId;

      @ApiModelProperty(value = "关闭评论，逻辑删除")
      private Integer isDelete;


}